package com.neu.smty.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neu.smty.mapper.AppointmentMapper;
import com.neu.smty.domain.Appointment;
import com.neu.smty.service.IAppointmentService;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author liningning
 * @date 2025-10-09
 */
@Service
public class AppointmentServiceImpl implements IAppointmentService
{
    @Autowired
    private AppointmentMapper appointmentMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param appointmentId 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public Appointment selectAppointmentById(Long appointmentId)
    {
        return appointmentMapper.selectAppointmentById(appointmentId);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param appointment 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<Appointment> selectAppointmentList(Appointment appointment)
    {
        return appointmentMapper.selectAppointmentList(appointment);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param appointment 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertAppointment(Appointment appointment)
    {
        return appointmentMapper.insertAppointment(appointment);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param appointment 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateAppointment(Appointment appointment)
    {
        return appointmentMapper.updateAppointment(appointment);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param appointmentIds 需要删除的【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteAppointmentByIds(Long[] appointmentIds)
    {
        return appointmentMapper.deleteAppointmentByIds(appointmentIds);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param appointmentId 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteAppointmentById(Long appointmentId)
    {
        return appointmentMapper.deleteAppointmentById(appointmentId);
    }
}
